package com.zzh.camera2.manager

import com.zzh.camera2.ui.AutoFitTextureView

interface IBaseCameraManager {
    // open camera and start camera preview
    fun openCamera(
        textureView: AutoFitTextureView, cameraId: Int,
        previewWidth: Int, previewHeight: Int,
        imageFormat: Int
    )

    fun startPreview()
    fun stopPreview()
    fun releaseCamera()
}